270. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2023-07-12 04:43:06 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

270.1 Files compared

#LocationFileLast Modified
1Porto v4.0.5/Theme Files/Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/viewprev_next.phtml2021-01-29 04:29:50 +0000
2Porto v4.0.6/Theme Files/Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/viewprev_next.phtml2021-01-29 04:29:50 +0000

270.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged186
Changed00
Inserted00
Removed00

270.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

270.4 Active regular expressions

No regular expressions were active.

270.5 Comparison detail

1 <?php 1 <?php
2     $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); 2     $porto_helper = $this->helper('Smartwave\Porto\Helper\Data');
3     $product_view = $porto_helper->getConfig('porto_settings/product'); 3     $product_view = $porto_helper->getConfig('porto_settings/product');
4     $_helper = $this->helper('Magento\Catalog\Helper\Output'); 4     $_helper = $this->helper('Magento\Catalog\Helper\Output');
5     $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); 5     $_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
6     if(isset($product_view['prev_next']) && $product_view['prev_next']) { 6     if(isset($product_view['prev_next']) && $product_view['prev_next']) {
7         $_product = $block->getProduct(); 7         $_product = $block->getProduct();
8         $prev_product = $porto_helper->getPrevProduct($_product); 8         $prev_product = $porto_helper->getPrevProduct($_product);
9         $next_product = $porto_helper->getNextProduct($_product); 9         $next_product = $porto_helper->getNextProduct($_product);
10 ?> 10 ?>
11 <?php if($prev_product || $next_product):?> 11 <?php if($prev_product || $next_product):?>
12 <div class="prev-next-products"> 12 <div class="prev-next-products">
13     <?php if($prev_product): ?> 13     <?php if($prev_product): ?>
14     <?php 14     <?php
15         $productImage = $_imagehelper->init($prev_product, 'category_page_grid')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(80); 15         $productImage = $_imagehelper->init($prev_product, 'category_page_grid')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(80);
16         $productImageUrl = $productImage->getUrl(); 16         $productImageUrl = $productImage->getUrl();
17     ?> 17     ?>
18     <div class="product-nav product-prev"> 18     <div class="product-nav product-prev">
19         <a href="<?php echo $prev_product->getProductUrl(); ?>" title="<?php echo __('Previous Product'); ?>"><?php echo $product_view['prev_text']; ?></a> 19         <a href="<?php echo $prev_product->getProductUrl(); ?>" title="<?php echo __('Previous Product'); ?>"><?php echo $product_view['prev_text']; ?></a>
20         <div class="product-pop"> 20         <div class="product-pop">
21             <img class="product-image" src="<?php echo $productImageUrl; ?>" alt="<?php echo $productImage->getLabel(); ?>"/> 21             <img class="product-image" src="<?php echo $productImageUrl; ?>" alt="<?php echo $productImage->getLabel(); ?>"/>
22             <h3 class="product-name"><?php echo $prev_product->getName(); ?></h3> 22             <h3 class="product-name"><?php echo $prev_product->getName(); ?></h3>
23         </div> 23         </div>
24     </div> 24     </div>
25     <?php endif; ?> 25     <?php endif; ?>
26     <?php if($next_product): ?> 26     <?php if($next_product): ?>
27     <?php 27     <?php
28         $productImage = $_imagehelper->init($next_product, 'category_page_grid')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(80); 28         $productImage = $_imagehelper->init($next_product, 'category_page_grid')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(80);
29         $productImageUrl = $productImage->getUrl(); 29         $productImageUrl = $productImage->getUrl();
30     ?> 30     ?>
31     <div class="product-nav product-next"> 31     <div class="product-nav product-next">
32         <a href="<?php echo $next_product->getProductUrl(); ?>" title="<?php echo __('Next Product'); ?>"><?php echo $product_view['next_text']; ?></a> 32         <a href="<?php echo $next_product->getProductUrl(); ?>" title="<?php echo __('Next Product'); ?>"><?php echo $product_view['next_text']; ?></a>
33         <div class="product-pop"> 33         <div class="product-pop">
34             <img class="product-image" src="<?php echo $productImageUrl; ?>" alt="<?php echo $productImage->getLabel(); ?>"/> 34             <img class="product-image" src="<?php echo $productImageUrl; ?>" alt="<?php echo $productImage->getLabel(); ?>"/>
35             <h3 class="product-name"><?php echo $next_product->getName(); ?></h3> 35             <h3 class="product-name"><?php echo $next_product->getName(); ?></h3>
36         </div> 36         </div>
37     </div> 37     </div>
38     <?php endif; ?> 38     <?php endif; ?>
39 </div> 39 </div>
40 <?php endif; ?> 40 <?php endif; ?>
41 <?php 41 <?php
42     } 42     }
43 ?> 43 ?>